import request from '@/utils/request'

// 查询预警统计列表
export function listWarningStatistics(query) {
  return request({
    url: '/ys/warningStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询预警统计详细
export function getWarningStatistics(id) {
  return request({
    url: '/ys/warningStatistics/' + id,
    method: 'get'
  })
}

// 新增预警统计
export function addWarningStatistics(data) {
  return request({
    url: '/ys/warningStatistics',
    method: 'post',
    data: data
  })
}

// 修改预警统计
export function updateWarningStatistics(data) {
  return request({
    url: '/ys/warningStatistics',
    method: 'put',
    data: data
  })
}

// 删除预警统计
export function delWarningStatistics(id) {
  return request({
    url: '/ys/warningStatistics/' + id,
    method: 'delete'
  })
}
